﻿using System;
using System.Globalization;
using System.Linq;

namespace OrgGen
{
    internal class Program
    {
        private static void Main(string[] args)
        {
            var dataHold = new TreeNode[] {};
            decimal layerCount = Convert.ToDecimal(args[0]);
            dataHold[0] = new TreeNode(0,"","0");
            var countInALayer = new int[] {};
            countInALayer[0] = 1;
            for (int layerIndex = 1; layerIndex < layerCount - 1; layerIndex++)
            {
                foreach (var parent in dataHold.Where(n => n.LayerIndex==layerIndex))
                {

                }
            }
        }
    }

    internal class TreeNode
    {
        public int LayerIndex { get; set; }
        public string ParentId { get; set; }
        public string Id { get; set; }

        public TreeNode(int layerIndex, string parentId, string id)
        {
            LayerIndex = layerIndex;
            ParentId = parentId;
            Id = id;
        }
    }
}